<layout name="Iflayout"/>
<div class="xyh-content">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                修改评论
            </h3>
        </div>

    </div>


    <div class="row">
        <div class="col-lg-12">

            <form method='post' class="form-horizontal" id="form_do" name="form_do" action="{:U('editUser')}">
                <div class="form-group">
                    <label for="inputName" class="col-sm-2 control-label">所属文章</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">{$arr['title']}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputUsername" class="col-sm-2 control-label">评论人</label>
                    <div class="col-sm-9">
                        <input type="text" name="username" id="inputUsername" value="{$arr['username']}" class="form-control" placeholder="评论人" required="required" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputEname" class="col-sm-2 control-label">email</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">{$arr['email']}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputRemark" class="col-sm-2 control-label">评论时间</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">{$arr['posttime']|date='Y-m-d H:i:s',###}</p>
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputSort" class="col-sm-2 control-label">IP地址</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">{$arr['ip']}</p>
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputSort" class="col-sm-2 control-label">评论内容</label>
                    <div class="col-sm-9">
                        <textarea name="content" id="content" class="form-control">{$arr['content']}</textarea>
                        <p>支持html。</p>
                    </div>
                </div>

                <div class="row margin-botton-large">
                    <div class="col-sm-offset-2 col-sm-9">
                        <div class="btn-group">
                            <input type="hidden" value="{$arr['id']}" name="id">
                            <button type="submit" class="btn btn-primary"> <i class="glyphicon glyphicon-saved"></i>
                                保存
                            </button>
                            <button type="button" onclick="goUrl('index')" class="btn btn-default"> <i class="glyphicon glyphicon-chevron-left"></i>
                                返回
                            </button>
                        </div>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>
</body>
</html>